package com.bootdo.system.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bootdo.common.utils.DateUtils;
import com.bootdo.system.domain.TbUserWater;
import com.bootdo.system.mapper.TbUserWaterMapper;
import com.bootdo.system.service.UserLsService;

@Service
public class UserLsServiceImpl implements UserLsService{
	
	@Autowired
    private TbUserWaterMapper um;

	@Override
	public List<TbUserWater> list(Map<String, Object> map) {
		return um.list(map);
	}

	@Override
	public int count(Map<String, Object> map) {
		return  um.count(map);
	}

	@Override
	public int insert(TbUserWater table) {
		int res=0;
		if(table != null) {
			table.setCjsj(DateUtils.format(new Date()));
			res=um.insertSelective(table);
		}
		return res;
	}
	
	

}
